package com.example.shop.domain;

import com.example.shop.bos.Bostype;
import com.example.shop.bos.Entry;
import lombok.Builder;
import lombok.Data;

import javax.persistence.*;

/**
 * Created by cx on 17-11-30.
 */
@Entity
@Bostype("A05")
@Table(name = "T_ADDRESSITEM")
@Data
public class AddressItem extends Entry{

    private Integer status=0;

    private String  address;

    @ManyToOne(fetch = FetchType.LAZY)
    @Access(AccessType.PROPERTY)
    public Buyer getParent() {
        return (Buyer)super.getInnerParent();
    }


}
